package com.vito.dcs.asphalt.asphaltMonitor.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.vito.base.model.DataGrid;
import com.vito.dcs.asphalt.asphaltMonitor.dao.AlarmAsphaltMapper;
import com.vito.dcs.asphalt.asphaltMonitor.model.AlarmAsphaltModel;
import com.vito.dcs.asphalt.asphaltMonitor.service.AlarmAsphaltService;
import com.vito.dcs.water.waterMonitor.model.AlarmWaterModel;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class AlarmAsphaltServiceImpl implements AlarmAsphaltService {

    @Autowired
    private AlarmAsphaltMapper alarmAsphaltMapper;

    @Override
    public DataGrid<AlarmAsphaltModel> queryAlarmAsphaltModelList(AlarmAsphaltModel alarmAsphaltModel) {
        DataGrid<AlarmAsphaltModel> dg = new DataGrid<AlarmAsphaltModel>();
        dg.setRows(alarmAsphaltMapper.queryAlarmAsphaltModelListByPage(alarmAsphaltModel));
        dg.setTotal(alarmAsphaltModel.getTotal());
        return dg;
    }
}
